ArcGIS Runtime SDK for WPF - Library Reference
InitializeWithLocalServiceAsync(Locator,String,String,Action<LocalGeocodeService>) Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > LocatorLocalExtensions Class > InitializeWithLocalServiceAsync Method : InitializeWithLocalServiceAsync(Locator,String,String,Action<LocalGeocodeService>) Method

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.
locatorName
A System.String representing the name of the Locator within the package or workspace.
callback
An Action delegate to support inline event handling.
Asynchronously initializes a Locator task instance with a ESRI.ArcGIS.Client.Local.LocalGeocodeService.UrlGeocodeService based on the provided path to a Geocode Package (.gcpk) or alternatively a folder or Geodatabase containing a locator.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub InitializeWithLocalServiceAsync( _
   ByVal locator As Locator, _
   ByVal path As String, _
   ByVal locatorName As String, _
   ByVal callback As Action(Of LocalGeocodeService) _
) 
C# 
public static void InitializeWithLocalServiceAsync( 
   Locator locator,
   string path,
   string locatorName,
   Action<LocalGeocodeService> callback
)

Parameters

locator
A Locator to initialize.
path
A System.String representing the path to a Locator Package, folder or Geodatabase.
locatorName
A System.String representing the name of the Locator within the package or workspace.
callback
An Action delegate to support inline event handling.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.